package com.example.demo1.controller;
import com.example.demo1.Entity.BanInformation;
import com.example.demo1.service.BanInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class BanInformationController {
    @Autowired
    private  BanInformationService banInformationService;
    @PostMapping("/BanInformation")
    public void inputbaninformation(@RequestParam String college,
                                    @RequestParam String banname){
        BanInformation banInformation=banInformationService.BanInformationeSet( college,
                                                                 banname);
        banInformationService.save_data(banInformation);
    }
}
